#pragma once

#import "..\..\Debug\GLObjects.dll"

class CGLView;
extern std::wstring Rotate;

class CInvalidateWindowAdvice: public 
	CAdvice<
		CPointcut<
			CComTypeFilter<__uuidof(GLObjectsLib::IGLObject)>,
			CComMethodMatcher<Rotate>>>,
	public IAfterReturningAdvice
{
	CGLView* view;
public:
	CInvalidateWindowAdvice(CGLView* view);
	void AfterReturning(CJoinPoint& joinPoint,int returnValue);
};

